package com.itheima;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController//标识当前类为请求处理类
public class HelloControl {
    @RequestMapping("/hello")//用啦设置请求路径
    public  String hello(){
         System.out.println("hello");
         return "Hello World";
    }
}
